package site.codeblog.designpattern.factory.factory_method;



public class CoffeeStore {

    private CoffeeFactory factory;

    public void setFactory(CoffeeFactory factory){
        this.factory = factory;
    }

    public void orderCoffee() {
        Coffee coffee = factory.createCoffee();
        coffee.getType();
        coffee.addMilk();
        coffee.addSugar();
    }
}
